﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CompositionPlugin.Service
{
    public class ModuleTemporaryFileRepository : TemporaryFileRepository, IModuleTemporaryFileRepository
    {
        public void Initialize<T>(SystemRuntime.Module<T> module) where T : class
        {
            throw new NotImplementedException();
        }

        public void Destroy<T>(SystemRuntime.Module<T> module) where T : class
        {
            if (SystemRuntime.Current.Configuration.TempFile.AutoClean)
                this.Clear();
        }
    }
}
